package cn.zysheep.reflect;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @version v1.0
 * @Author: lyw
 * @Date: 2021/8/20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Pro(name = "学生类",desc = "学生实体类")
public class Student {

    @Pro(name = "username",desc = "学生姓名")
    public String username;

    Integer age;

    //定义成员方法
    @Pro(name = "run",desc = "跑步方法")
    public void run(String username) {
        System.out.println("生命不止,运动不息！"+username);
    }
}
